home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / toolbox / src / tutorials / custEducation / opengl2 / labs / fly / README < prev    next >
Encoding:
Text File  |  1996-11-11  |  2.1 KB  |  63 lines

  1.  
  2.         to compile programs in the above-indicated sub- directories/trees, 
  3.        one must load libglut. inst-able images of GLUT v3.1 are located at 
  4.                 toolbox/src/exampleCode/opengl/GLUT/inst/ 
  5.  
  6.                   -------------------------------------
  7.  
  8.       ~opengl2/labs/fly README
  9.  
  10.             Copyright 1991, 1992, 1993, Silicon Graphics,  Inc.
  11.             Technical Education Development
  12.             All Rights Reserved.
  13.  
  14.    
  15.     fly.h:  contains function prototypes, defines constants, and 
  16.             includes GL/gl.h, GL/glu.h, math.h, stdio.h, and aux.h 
  17.  
  18.  
  19.     flyutil.c:  contains utility routines used by the fly program.
  20.  
  21.  
  22.     fly.c:  allows the user to "fly" through a simple virtual world. 
  23.  
  24.  
  25.  ____________________________________________________________________________
  26.  * Utility routines are located in flyutil.c
  27.  *
  28.  * MODIFYING THE PROGRAM
  29.  * ---------------------
  30.  * New shapes should be added to the world in the routine drawShapes(). 
  31.  *
  32.  * If new shapes are to be on the path of the autopilot, they must be 
  33.  * near a circle centered at the world origin with a radius of 10.0, 
  34.  * parallel to and raised above the 'floor,' the X-Z plane.
  35.  *
  36.  * As a starting point, here are some good places to center your objects:
  37.  *        ( 0.0, 1.0, 10.0 )
  38.  *        ( 7.0, 1.0, 7.0  )
  39.  *        ( 10.0, 1.0, 0.0 )
  40.  *        ( 7.0, 1.0, -7.0 )
  41.  *        ( 0.0, 1.0, -10.0)
  42.  *        ( -7.0, 1.0, -7.0)
  43.  *        ( -10.0, 1.0, 0.0)
  44.  *        ( -7.0, 1.0, 7.0 )
  45.  *___________________________________________________________________________
  46.  
  47.  
  48.  
  49.                             INPUT CONTROLS:
  50.  
  51.     <?> key - help, prints this info 
  52.     <a> key - <a>utopilot start/stop 
  53.     <b> key - <b>lend, alpha blending 
  54.     <d> key - toggle <d>ebugging printfs
  55.     <g> key - show floor <g>rid
  56.     <n> key - <n>ormals drawing toggle 
  57.     <r> key - <r>eset eye position 
  58.     SPACE key       - cycle wireframe/flat shaded/smooth 
  59.     LEFT Mouse      - control moving the eye forward 
  60.     MIDDLE Mouse    - control moving the eye backward 
  61.     Mouse pointer   - change direction: pull back to go up, forward to dive
  62.     Escape key      - exit the program 
  63.